package cn.hwm.proxy.rpcdemo;

import cn.hwm.proxy.common.UserAddress;

public class SendMailImpl implements SendMail{
    @Override
    public boolean sendMail(UserAddress userAddress) {

        try {
            Thread.sleep(50);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.out.println("已发送邮件给：" + userAddress.getName() + "到【" + userAddress.getUserAddress() + "】");

        return true;
    }
}
